package com.rchat.pocmini.activity.ble;

import com.rchat.pocmini.bean2eventbus.BleBean;
import com.rchat.pocmini.common.mvp.BaseModel;
import com.rchat.pocmini.common.mvp.BasePresenter;
import com.rchat.pocmini.common.mvp.BaseView;

import java.util.List;

/**
 * Created by ljd on 2017/8/29.
 */

public interface BleContract {


    interface View extends BaseView {
        void onBleConnected(List<BleBean> scanResultList);

        void bleDataAdd(List<BleBean> scanResultList);

        void scanStatus(int b);

        void onUpdateBleList();
    }

    abstract class Presenter extends BasePresenter<BleContract.View, BleContract.Model> {
        abstract void scan();

        /**
         * 断开Ble设备
         *
         * @param bean 指定断开的设备
         */
        abstract void onDisConnectedBle(BleBean bean);
    }

    interface Model extends BaseModel {

    }
}
